/**
 * @(#)WifiUtil.java 2017年5月12日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.util;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
public class WifiUtil {
	public static final Logger LOGGER = LoggerFactory.getLogger(WifiUtil.class);

	private static List<String> WIFI = new ArrayList<String>();

	static {
		WIFI.add("TP_LINK_");
		WIFI.add("D_LINK_");
		WIFI.add("LINK_");
	}

	public static String getWifiName() {
		int index = (int) (Math.random() * WIFI.size());
		return WIFI.get(index) + UUID.randomUUID().toString().replaceAll("-", "").substring(0, 4).toUpperCase();
	}
}
